namespace MoreLinq.Test;

using System;

abstract class Scope<T>(T current) : IDisposable
{
    public virtual void Dispose() => Restore(current);
    protected abstract void Restore(T old);
}
